﻿using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Activation;
using Acaweb.Common;
using Acaweb.Model.Entities;
using Acaweb.Model.Entities.DatosCompuestos;
using Components = Acaweb.Componentes.Contracts;

namespace Acaweb.Servicios.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class InteresadosService : Contracts.IInteresadosService
    {
        Components.IInteresadosService _InteresadoComponent = AppCtx.Resolve<Components.IInteresadosService>();

        public string Create(Interesados Interesado)
        {
            return _InteresadoComponent.CreateInteresado(Interesado);
        }

        public List<Interesados> GetByIdentificacion(Identificacion Identificacion)
        {
            return _InteresadoComponent.GetByIdentificacion(Identificacion).ToList();
        }

        public List<Interesados> GetByPlanEstudio(int CodigoPlan)
        {
            return _InteresadoComponent.GetByPlanesEstudios(CodigoPlan).ToList();
        }

        public List<Interesados> GetByPeriodoAcademico(PeriodoAcademico PeriodoAcademico)
        {
            return _InteresadoComponent.GetByPeriodoAcademico(PeriodoAcademico).ToList();
        }

        public string GenerarPDF(InteresadoPk InteresadoPk)
        {
            return _InteresadoComponent.GenerarPDF(InteresadoPk);
        }
    }
}